package com.slkj.shilixiaoyuanapp.ui.teacher.tool.MyApproval;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.slkj.shilixiaoyuanapp.R;
import com.slkj.shilixiaoyuanapp.entity.PeopleEntity;

import java.util.List;

/**
 * Created  on 2018-09-10
 *
 * @author 唐开阔
 * @describe 申请人adapter
 */
public class SqrAdapter extends BaseQuickAdapter<PeopleEntity, BaseViewHolder> {
    public SqrAdapter( @Nullable List<PeopleEntity> data) {
        super(R.layout.item_sp_spr,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, PeopleEntity item) {
        helper.setText(R.id.tv_name,item.getUName())
                .setText(R.id.tv_state,item.getStateStr())
                .setTextColor(R.id.tv_state,item.getTypeColor());

    }
}
